/**
 * 
 */
package com.indexingsystem.boss.Vo;

import java.io.Serializable;

/**
 * 资源分类中资源列表Vo对象.
 * 
 * @author Administrator
 *
 */
public class ResourceRelationInfoVo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1847046103653714894L;
	// e.res_category_id,e.categoryName,e.res_id,e.thumbnail,e.res_name,h.`name`,e.share_count,e.use_count,e.publish_date

	private String resCategoryId;

	private String categoryName;

	private String resId;

	private String thumbnail;

	private String resName;

	private String resTypeName;
	
	private String resTypeId;

	private Integer shareCount;

	private Integer useCount;

	private String publishDate;
	
	private String resCategoryRelationId;
	
	private String keywords;

	private String price;

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	public String getResTypeName() {
		return resTypeName;
	}

	public void setResTypeName(String resTypeName) {
		this.resTypeName = resTypeName;
	}

	public Integer getShareCount() {
		return shareCount;
	}

	public void setShareCount(Integer shareCount) {
		this.shareCount = shareCount;
	}

	public Integer getUseCount() {
		return useCount;
	}

	public void setUseCount(Integer useCount) {
		this.useCount = useCount;
	}

	public String getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}

	public String getResCategoryRelationId() {
		return resCategoryRelationId;
	}

	public void setResCategoryRelationId(String resCategoryRelationId) {
		this.resCategoryRelationId = resCategoryRelationId;
	}

	public String getResTypeId() {
		return resTypeId;
	}

	public void setResTypeId(String resTypeId) {
		this.resTypeId = resTypeId;
	}	

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public ResourceRelationInfoVo() {
		super();
	}

	public ResourceRelationInfoVo(String resCategoryId, String categoryName,
			String resId, String thumbnail, String resName, String resTypeName,
			String resTypeId, Integer shareCount, Integer useCount,
			String publishDate, String resCategoryRelationId, String keywords,
			String price) {
		super();
		this.resCategoryId = resCategoryId;
		this.categoryName = categoryName;
		this.resId = resId;
		this.thumbnail = thumbnail;
		this.resName = resName;
		this.resTypeName = resTypeName;
		this.resTypeId = resTypeId;
		this.shareCount = shareCount;
		this.useCount = useCount;
		this.publishDate = publishDate;
		this.resCategoryRelationId = resCategoryRelationId;
		this.keywords = keywords;
		this.price = price;
	}

	@Override
	public String toString() {
		return "ResourceRelationInfoVo [resCategoryId=" + resCategoryId
				+ ", categoryName=" + categoryName + ", resId=" + resId
				+ ", thumbnail=" + thumbnail + ", resName=" + resName
				+ ", resTypeName=" + resTypeName + ", resTypeId=" + resTypeId
				+ ", shareCount=" + shareCount + ", useCount=" + useCount
				+ ", publishDate=" + publishDate + ", resCategoryRelationId="
				+ resCategoryRelationId + ", keywords=" + keywords + ", price="
				+ price + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((categoryName == null) ? 0 : categoryName.hashCode());
		result = prime * result
				+ ((keywords == null) ? 0 : keywords.hashCode());
		result = prime * result + ((price == null) ? 0 : price.hashCode());
		result = prime * result
				+ ((publishDate == null) ? 0 : publishDate.hashCode());
		result = prime * result
				+ ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
		result = prime
				* result
				+ ((resCategoryRelationId == null) ? 0 : resCategoryRelationId
						.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((resName == null) ? 0 : resName.hashCode());
		result = prime * result
				+ ((resTypeId == null) ? 0 : resTypeId.hashCode());
		result = prime * result
				+ ((resTypeName == null) ? 0 : resTypeName.hashCode());
		result = prime * result
				+ ((shareCount == null) ? 0 : shareCount.hashCode());
		result = prime * result
				+ ((thumbnail == null) ? 0 : thumbnail.hashCode());
		result = prime * result
				+ ((useCount == null) ? 0 : useCount.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResourceRelationInfoVo other = (ResourceRelationInfoVo) obj;
		if (categoryName == null) {
			if (other.categoryName != null)
				return false;
		} else if (!categoryName.equals(other.categoryName))
			return false;
		if (keywords == null) {
			if (other.keywords != null)
				return false;
		} else if (!keywords.equals(other.keywords))
			return false;
		if (price == null) {
			if (other.price != null)
				return false;
		} else if (!price.equals(other.price))
			return false;
		if (publishDate == null) {
			if (other.publishDate != null)
				return false;
		} else if (!publishDate.equals(other.publishDate))
			return false;
		if (resCategoryId == null) {
			if (other.resCategoryId != null)
				return false;
		} else if (!resCategoryId.equals(other.resCategoryId))
			return false;
		if (resCategoryRelationId == null) {
			if (other.resCategoryRelationId != null)
				return false;
		} else if (!resCategoryRelationId.equals(other.resCategoryRelationId))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		if (resName == null) {
			if (other.resName != null)
				return false;
		} else if (!resName.equals(other.resName))
			return false;
		if (resTypeId == null) {
			if (other.resTypeId != null)
				return false;
		} else if (!resTypeId.equals(other.resTypeId))
			return false;
		if (resTypeName == null) {
			if (other.resTypeName != null)
				return false;
		} else if (!resTypeName.equals(other.resTypeName))
			return false;
		if (shareCount == null) {
			if (other.shareCount != null)
				return false;
		} else if (!shareCount.equals(other.shareCount))
			return false;
		if (thumbnail == null) {
			if (other.thumbnail != null)
				return false;
		} else if (!thumbnail.equals(other.thumbnail))
			return false;
		if (useCount == null) {
			if (other.useCount != null)
				return false;
		} else if (!useCount.equals(other.useCount))
			return false;
		return true;
	}	
}